#ifndef SPELL_H
#define SPELL_H

#include "xmlitem.h"

class Spell : public XMLItem
{
public:
    static const QString KEY_EFFECT;
    static const QString KEY_DURATION;
    static const QString KEY_DIFFICULTY;
    static const QString KEY_RANGE;
    static const QString KEY_INCANTATION;
    static const QString KEY_THREADS;
    static const QString KEY_DISCIPLINE;
    static const QString KEY_CIRCLE;

    Spell(const QMap<QString,QString>& values);
    virtual QString keyValue(const QString &key) const;

    R(QString,effect)
    R(QString,duration)
    R(QString,difficulty)
    R(QString,range)
    R(QString,incantation)
    R(QString,threads)
    R(QString,discipline)
    R(int,circle)
};

#endif // SPELL_H
